package com.jiawa.wiki.service;

import com.jiawa.wiki.domain.Test;
import com.jiawa.wiki.mapper.TestMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: WeiZhen
 * @Date: 2021/6/21 13:45
 * @Description: TODO
 * @Version: 1.0
 **/
@Service
public class TestService {

    @Resource //JDK自带的注解
//    @Autowired spring自带的注解
    private TestMapper testMapper;

    public List<Test> list(){
        return testMapper.list();
    }

}
